﻿using System;

namespace UniRx.Examples
{
	// Token: 0x020001F2 RID: 498
	public class Enemy
	{
		// Token: 0x06000A6C RID: 2668 RVA: 0x00037E78 File Offset: 0x00036278
		public Enemy(int initialHp)
		{
			this.CurrentHp = new ReactiveProperty<long>((long)initialHp);
			this.IsDead = (from x in this.CurrentHp
			select x <= 0L).ToReactiveProperty<bool>();
		}

		// Token: 0x170000CD RID: 205
		// (get) Token: 0x06000A6D RID: 2669 RVA: 0x00037ECB File Offset: 0x000362CB
		// (set) Token: 0x06000A6E RID: 2670 RVA: 0x00037ED3 File Offset: 0x000362D3
		public IReactiveProperty<long> CurrentHp { get; private set; }

		// Token: 0x170000CE RID: 206
		// (get) Token: 0x06000A6F RID: 2671 RVA: 0x00037EDC File Offset: 0x000362DC
		// (set) Token: 0x06000A70 RID: 2672 RVA: 0x00037EE4 File Offset: 0x000362E4
		public IReactiveProperty<bool> IsDead { get; private set; }
	}
}
